<template>
  <div :style="'height:' + height">
    <iframe
      :src="url"
      frameborder="no"
      style="width: 100%; height: 100%"
      scrolling="auto"
    />
  </div>
</template>

<script>
  export default {
    data() {
      return {
        height: document.documentElement.clientHeight - 94.5 + "px;",
        url: 'http://localhost:8080/api/doc.html'
      };
    },
    mounted: function () {
      const that = this;
      window.onresize = function temp() {
        that.height = document.documentElement.clientHeight - 94.5 + "px;";
      };
    }
  };
</script>
